package cn.laixueit.service;

import java.util.Date;

public class UserService {

    private Date date;

    public void setDate(Date date) {
        this.date = date;
    }

    private UserService() {
        System.out.println("无参构造");
    }


        String name;
        String sex;
        int age;

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    //
//    public UserService(String name,String sex,int age) {
//        this.name = name;
//        this.sex = sex;
//        this.age =  age;
//    }

    public void show(){
        System.out.println("userService.show......" + name+sex+age);
        System.out.println("date = " + date);
    }


//    public static UserService getInstance(){
//        System.out.println("静态工厂。。。。");
//        return new UserService();
//    }


//    public UserService getUserService(){
//        return new UserService();
//    }

    public void init_me(){
        System.out.println("创建了,初始化数据");
    }

    public void des_me(){
        System.out.println("死亡了");
    }
}
